package com.leyou.item.mapper;

import com.leyou.item.pojo.Brand;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;
import tk.mybatis.mapper.common.Mapper;

import javax.websocket.server.PathParam;
import java.util.List;

public interface BrandMapper extends Mapper<Brand> {

    //@Insert("insert into tb_category_brand (category_id,brand_id) values(#{cid},#{bid})")
    void insertCategoryBrand(@Param("cid") long cid, @Param("bid") Long id);
    //@Delete("DELETE FROM tb_category_brand WHERE brand_id=#{bid}")
    void deleteCategoryBrand(@Param("bid") long bid);


    List<Brand> queryBrandByCategory(@Param("cid") Long cid);
}
